var t = require;
var e = module;
var o = exports;
Object.defineProperty(o, "__esModule", {value: !0});
o.MaskShake = void 0;
var a = cc._decorator;
a.ccclass, a.property, a.menu;
(function (t) {
    t[(t.circle = 0)] = "circle";
    t[(t.rect = 1)] = "rect";
})(o.MaskShake || (o.MaskShake = {}));
var i = (function () {
    function t() {}
    t.prototype.creatMake = function (t, e) {
        if (cc.isValid(t) && !this.mask) {
            var o = t.getComponent(cc.Mask);
            o || (o = t.addComponent(cc.Mask));
            this.mask = o;
            if (!this.childSprite) {
                var a = new cc.Node("spr");
                a.parent = t;
                a.setPosition(cc.Vec2.ZERO);
                a.color = cc.Color.GREEN;
                a.opacity = 50;
                this.childSprite = a.addComponent(cc.Sprite);
                this.childSprite.spriteFrame = e;
            }
        }
    };
    t.prototype.setSize = function (t) {
        if (cc.isValid(this.childSprite)) {
            this.childSprite.node.width = t.x;
            this.childSprite.node.height = t.y;
        }
        if (cc.isValid(this.mask)) {
            this.mask.node.width = t.x;
            this.mask.node.height = t.y;
        }
    };
    t.prototype.resetViewSize = function () {};
    return t;
})();
o.default = i;
